<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<script type="text/javascript">
			var a = prompt("请输入数据");
			if (a == 1) {
				console.log("周一");
			}
			if (a == 2) {
				console.log("周二");
			}
			if (a == 3) {
				console.log("周三");
			}
			if (a == 4) {
				console.log("周四");
			}
			if (a == 5) {
				console.log("周五");
			}
			if (a == 6) {
				console.log("周六");
			}
			if (a == 7) {
				console.log("周日");
			}
		</script>
	</body>
</html>
